//
//  GetLogin.swift
//  CleanArchitecture
//
//  Created by siri on 2024/11/7.
//  用例类 与视图层进行交互

import Combine

protocol GetLogin{
    var loginGateway: LoginGatewayProtocol { get }
}

extension GetLogin
{
    func getLogin(username: String, password:String) -> AnyPublisher<Res<TokenOutVO>, Error> {
       return  loginGateway.login(username: username,password: password)
    }
}
